package jeuDeLaVie;

import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;


public class Main {

        public static void main(String[] args){
                Environnement e = new Environnement();
                MaVue maVue = new MaVue(e);
                e.addObserver((Observer) maVue);
                maVue.addWindowListener(new WindowAdapter(){
                        @Override
                        public void windowClosing(WindowEvent event){
                                System.exit(0);
                        }
                });
                
        }
        
}
